package com.tensquare.test;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author zzb
 * @create 2021/2/22
 */
@Component
@RabbitListener(queues = "zzb-bj")
public class Consumer05 {
    @RabbitHandler
    public void getMessage(String message){
        System.out.println("zzb-bj = " + message);
    }
}
